/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"did-service/controller"

	"github.com/emicklei/go-restful"
)

func RegisterDidWebService(ws *restful.WebService, controller *controller.DidController) {
	ws.Route(ws.POST("/v1/did/operation").To(controller.DidOperation)).
		Route(ws.GET("/v1/did/resolve/{did}").To(controller.DidResolve)).
		Route(ws.GET("/v1/did/dereference/{didURL}").To(controller.DidDereference)).
		Route(ws.POST("/v1/did/sign").To(controller.SignByKey)).
		Route(ws.POST("/v1/did/verify").To(controller.VerifyByKey))
}
